package xiaohu.day8.HJ82;

import java.util.Scanner;

public class Main2 {
    //奇葩方法
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()) {
            String[] split = scanner.nextLine().split("/");
            int a = Integer.parseInt(split[0]);
            StringBuilder sb = new StringBuilder();
            if (split.length == 2) {
                for (int i = 0; i < a; i++) {
                    sb.append("1/"+split[1]+"+");
                }
                System.out.println(sb.substring(0,sb.length()-2));
            }
        }
    }
}
